
package com.jf.cloud.user.controller.app;

import com.jf.cloud.common.database.dto.PageDTO;
import com.jf.cloud.common.database.vo.PageVO;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.user.service.UserExtensionService;
import com.jf.cloud.user.vo.UserExtensionVO;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import ma.glasnost.orika.MapperFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * 用户扩展信息
 *
 * @author zz
 * @date 2020-12-08 10:16:53
 */
@RestController("appUserExtensionController")
@RequestMapping("/user_extension")
@Tag(name = "app-用户扩展信息")
public class UserExtensionController {

    @Autowired
    private UserExtensionService userExtensionService;

    @Autowired
    private MapperFacade mapperFacade;

    @GetMapping("/page")
    @Operation(summary = "获取用户扩展信息列表" , description = "分页获取用户扩展信息列表")
    public ServerResponseEntity<PageVO<UserExtensionVO>> page(@Valid PageDTO pageDTO) {
        PageVO<UserExtensionVO> userExtensionPage = userExtensionService.page(pageDTO);
        return ServerResponseEntity.success(userExtensionPage);
    }




}
